package com.hckjsec.website.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hckjsec.website.mapper.WebSiteCheckedroomMapper;
import com.hckjsec.website.domain.WebSiteCheckedroom;
import com.hckjsec.website.service.IWebSiteCheckedroomService;

/**
 * 公众云选房Service业务层处理
 * 
 * @author jeethink
 * @date 2022-07-11
 */
@Service
public class WebSiteCheckedroomServiceImpl implements IWebSiteCheckedroomService 
{
    @Autowired
    private WebSiteCheckedroomMapper webSiteCheckedroomMapper;

    /**
     * 查询公众云选房
     * 
     * @param id 公众云选房ID
     * @return 公众云选房
     */
    @Override
    public WebSiteCheckedroom selectWebSiteCheckedroomById(Long id)
    {
        return webSiteCheckedroomMapper.selectWebSiteCheckedroomById(id);
    }

    /**
     * 查询公众云选房列表
     * 
     * @param webSiteCheckedroom 公众云选房
     * @return 公众云选房
     */
    @Override
    public List<WebSiteCheckedroom> selectWebSiteCheckedroomList(WebSiteCheckedroom webSiteCheckedroom)
    {
        return webSiteCheckedroomMapper.selectWebSiteCheckedroomList(webSiteCheckedroom);
    }

    /**
     * 新增公众云选房
     * 
     * @param webSiteCheckedroom 公众云选房
     * @return 结果
     */
    @Override
    public int insertWebSiteCheckedroom(WebSiteCheckedroom webSiteCheckedroom)
    {
        return webSiteCheckedroomMapper.insertWebSiteCheckedroom(webSiteCheckedroom);
    }

    /**
     * 修改公众云选房
     * 
     * @param webSiteCheckedroom 公众云选房
     * @return 结果
     */
    @Override
    public int updateWebSiteCheckedroom(WebSiteCheckedroom webSiteCheckedroom)
    {
        return webSiteCheckedroomMapper.updateWebSiteCheckedroom(webSiteCheckedroom);
    }

    /**
     * 批量删除公众云选房
     * 
     * @param ids 需要删除的公众云选房ID
     * @return 结果
     */
    @Override
    public int deleteWebSiteCheckedroomByIds(Long[] ids)
    {
        return webSiteCheckedroomMapper.deleteWebSiteCheckedroomByIds(ids);
    }

    /**
     * 删除公众云选房信息
     * 
     * @param id 公众云选房ID
     * @return 结果
     */
    @Override
    public int deleteWebSiteCheckedroomById(Long id)
    {
        return webSiteCheckedroomMapper.deleteWebSiteCheckedroomById(id);
    }
}
